package lc.q201_250;

import java.util.HashSet;
import java.util.Set;

public class Q217 {

    public boolean containsDuplicate(int[] nums) {
        Set<Integer> check = new HashSet<>();
        for (int num : nums) {
            if (!check.add(num)) {
                return true;
            }
        }
        return false;
    }
}
